<?php

/* * ************************************************************************************************
  |
  | AudioShare - Audio Sharing Script
  | http://www.audiosharescript.com
  | webmaster@audiosharescript.com
  | Version: 2.0
  |
  |**************************************************************************************************
  |
  | By using this software you agree that you have read and acknowledged our End-User License
  | Agreement available at http://www.audiosharescript.com/eula.html and to be bound by it.
  |
  | Copyright (c) 2009 AudioShareScript.com. All rights reserved.
  |************************************************************************************************* */

include("../include/config.php");
include_once("../include/functions/import.php");
verify_login_admin();

$mainmenu = "6";
$submenu = "1";

$audioid=$_REQUEST["AUDIOID"];
$query = "SELECT * FROM audios WHERE AUDIOID='" . mysql_real_escape_string($audioid) . "'";
$executequery = $conn->execute($query);
$audioarray = $executequery->getarray();
$audioYear=date("Y",strtotime($audioarray[0]["date_added"]));
$catName=fetch_category_name_from_id($audioarray[0]["categories"]);
        
STemplate::assign('audioYear', $audioYear);
STemplate::assign('audioarray', $audioarray);
Stemplate::assign('mainmenu', $mainmenu);
Stemplate::assign('submenu', $submenu);
Stemplate::assign('catName', $catName);

STemplate::display("administrator/global_header.tpl");
STemplate::display("administrator/audios_play.tpl");
STemplate::display("administrator/global_footer.tpl");
?>